
/*1.数据模拟*/

var roles=Mock.mock({
    "list|5":[{
        "id|+1":1,
         "role":"@first"
    }]
})


/**
 * 2. ajax 拦截
 * */
Mock.mock("http:test.org/roles",roles.list)